#include "QuickSort.h"

using namespace std;

int main() {
    int n;
    int k;
    cout<<"Please input the size of n ,if n=0 then exit : ";
    while (cin>>n && n) {
        vector<int> vec;
        cout<<"Please input "<<n<<" numbers."<<endl;
        while (n--) {
            cin>>k;
            vec.push_back(k);
        }
        sort(vec);
        cout<<"Sorting..."<<endl;
        for (int i=0;i<vec.size();i++) {
            cout<<vec[i]<<" ";
        }
        cout<<endl<<"Please input the size of n ,if n=0 then exit : ";
    }
    cout<<"Thanks for testing."<<endl;
}
